package com.example.demo6.demos.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface FavoritesMapper {

    @Insert("insert into favorites(user_id, product_id) values(#{userId}, #{productId})")
    void addToFavorites(String userId, String productId);
}
